﻿using System;
using System.Collections.Generic;
using System.Text;
using OneMG.Phoenix.Entity;
using OneMG.Phoenix.Service.Model;

namespace OneMG.Phoenix.Service.Contracts
{
    public interface IRightsService
    {
        System.Int32 AddRights(RightsModel model );

		void UpdateByRightID (RightsModel model );

		void DeleteByRightID (System.Int32 rightID );
		 
        RightsModel GetByRightID (System.Int32 rightID );

        IList<RightsModel> GetByRightTypeID(System.Int32 rightTypeID);

        string GetRightNameByUserID(System.Int32 userID);

        IList<RightsAndTypeModel> GetRightAndType();
    }
}